home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / PRG / Mac_F2C_1.3.2.sit / Mac F2C 1.3.2 / Mac F2C Libraries / libF77 Sources / r_abs.c < prev    next >
C/C++ Source or Header  |  1995-01-28  |  139b  |  13 lines

  1. #include "f2c.h"
  2.  
  3. #ifdef KR_headers
  4. double r_abs(x) real *x;
  5. #else
  6. double r_abs(real *x)
  7. #endif
  8. {
  9. if(*x >= 0)
  10.     return(*x);
  11. return(- *x);
  12. }
  13.